package com.ftg.learn.springboot.demo.service;

import com.ftg.learn.springboot.demo.mapper.applyMapper;
import com.ftg.learn.springboot.demo.pojo.apply;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.UUID;

@Service
public class applyService {

	@Autowired
	applyMapper am;

	public int add(apply apply) {
		apply.setAid(UUID.randomUUID().toString());
		apply.setAstate("待审核");
		return am.add(apply);
	}

}
